import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
import { l10n } from 'db://localization-editor/l10n'

@ccclass('GameManger')
export class GameManger extends Component {
    start() {
        //阿语环境，x坐标取反
        if (l10n.currentLanguage === 'ar') {
            for(let i=0;i<this.node.children.length;i++){
                this.node.children[i].setPosition(-this.node.children[i].position.x,this.node.children[i].position.y)
            }
        }
    }

    update(deltaTime: number) {
        
    }
}


